import request from "@/request/index.js";

export function getDoctorList(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-doctor-page",
    params: params || {},
    custom: {
      title: "获取医生列表",
      authentication: true,
    },
  });
}

export function getDoctorByHisCode(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-by-his-code",
    params: params || {},
    custom: {
      title: "根据hisCode获取医生",
      authentication: true,
    },
  });
}

export function getNoPharmacistDoctorList(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-no-pharmacist",
    params: params || {},
    custom: {
      title: "获取医生列表(无药师)",
      authentication: true,
    },
  });
}

export function getHomeRecommendDoctor(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-home-recommend-doctor",
    params: params || {},
    custom: {
      title: "获取首页推荐医护列表",
      authentication: true,
    },
  });
}
export function getHomeRecommendDoctorPage(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-home-recommend-doctor-page",
    params: params || {},
    custom: {
      title: "获取推荐医护列表分页",
      authentication: true,
    },
  });
}

export function getDoctorHomePageInfo(params) {
  return request.get({
    url: "/app-api/user/doctor/info/home-page",
    params: params || {},
    custom: {
      title: "获取医生主页信息",
      authentication: true,
    },
  });
}

export function submitFollowDoctor(params) {
  return request.post({
    url: "/app-api/user/patient-user-follow/follow",
    params: params || {},
    custom: {
      title: "关注医生",
      authentication: true,
    },
  });
}

export function getFollowDoctorList(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-follow-doctor",
    params: params || {},
    custom: {
      title: "获取关注医生列表",
      authentication: true,
    },
  });
}

export function getDoctorEvaluateCount(params) {
  return request.get({
    url: "/app-api/collaboration/comment-consultation/get-service-comment",
    params: params || {},
    custom: {
      title: "获取医生评论统计",
      authentication: true,
    },
  });
}

export function getDoctorEvaluateList(params) {
  return request.get({
    url: "/app-api/collaboration/comment-consultation/get-service-comment-page",
    params: params || {},
    custom: {
      title: "获取医生评论列表",
      authentication: true,
    },
  });
}

export function getDoctorNewsList(params) {
  return request.get({
    url: "/app-api/information/app-patient-special-column-journalism/getArticleList",
    params: params || {},
    custom: {
      title: "获取医生资讯列表",
      authentication: true,
    },
  });
}

export function getPersonalList(params) {
  return request.get({
    url: "/app-api/user/patient-my-doctor/get-my-doctors",
    params: params || {},
    custom: {
      title: "我的医生",
      authentication: true,
    },
  });
}

export function getDoctorSubscription(params) {
  return request.get({
    url: "/app-api/user/doctor/info/get-doctor-subscription",
    params: params || {},
    custom: {
      title: "专栏订阅情况",
      authentication: true,
    },
  });
}

export function createSpecialColumOrder(params) {
  return request.post({
    url: "/app-api/information/app-patient-special-column-journalism/create-special-colum-order",
    params: params || {},
    custom: {
      title: "专栏订阅",
      authentication: true,
    },
  });
}

// 获取医生主页推荐商品
export function getDoctorHomePageRecommendProduct(params) {
  return request.post({
    url: "/app-api/mall/product/list/doctor/recommend",
    params: params || {},
    custom: {
      title: "获取医生主页推荐商品",
      authentication: true,
    },
  });
}

// 推荐查看全部商品
export function getDoctorHomePageRecommendProductAll(params) {
  return request.get({
    url: "/app-api/mall/product/list-page",
    params: params || {},
    custom: {
      title: "获取商城商品列表",
      authentication: true,
    },
  });
}
